package vn.tbs.kcdk.fragments;

import vn.tbs.kcdk.KCDKActivity;
import android.os.Bundle;
import android.util.Log;

import com.actionbarsherlock.app.SherlockFragment;

public class KCDKBaseFragment extends SherlockFragment {
	private static final String TAG = KCDKBaseFragment.class.getSimpleName();
	protected String mContentCategoryId = "";
	protected KCDKActivity mKCDKActivity;

	@Override
	public void onResume() {
		Log.i(TAG, "onResume start");

		super.onResume();
		if (mKCDKActivity!=null) {
			mKCDKActivity.setmContentFragment(this);			
		}

		Log.i(TAG, "onResume end");
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);

		if (getActivity() == null)
			return;

		if (getActivity() instanceof KCDKActivity) {
			mKCDKActivity = (KCDKActivity) getActivity();
		}
	}
}
